Repository navigation
feat: add configurable SlateDB flush interval and group commit hook - #414
alexskinner wants to merge 1 commit into
Conversation
Add open_with_settings and open_s3_with_settings so callers can set SlateDB Settings such as flush_interval. Track the latest WriteHandle across storage clones via last_write, so concurrent committers can share one WAL flush instead of each waiting for durability on their own. Co-authored-by: Alex Skinner <alexskinner@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #414 +/- ##
=======================================
Coverage 93.08% 93.08%
=======================================
Files 282 282
Lines 39885 39885
=======================================
Hits 37125 37125
Misses 2760 2760
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
I am particularly sensitive when it comes to the use of locks—which is likely why you won’t find any locks being used in KiteSQL. It seems this PR attempts to allow different operations to participate in the same group commit; however, wouldn't it be better to approach this optimization from the perspective of the |
Add
open_with_settingsandopen_s3_with_settingsso callers can pass SlateDBSettingssuch asflush_interval.Also track the latest
WriteHandleacross storage clones vialast_write, so concurrent committers can share one WAL flush instead of each waiting for durability independently.Includes unit tests covering
open_with_settingsand shared flush waiting (last_write_awaits_the_latest_commit).